package top.meijhm.communitymanagement.common.auth.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@ApiModel(value = "Login User", description = "登录用户信息")
@Data
public class LoginUser {
    @NotBlank(message = "error.not_blank")
    @Size(min = 1, max = 32, message = "error.size")
    @ApiModelProperty(value = "用户名，长度：1~32", required = true, example = "admin")
    private String username;
    @NotBlank(message = "error.not_blank")
    @Size(min = 1, max = 60, message = "error.size")
    @ApiModelProperty(value = "密码，长度：1~60", required = true, example = "q1e3t5")
    private String password;
}